<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-depotHead-edit" th:object="${depotHead}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">入库批次号：</label>
                <div class="col-sm-8">
                    <input id="depotHeadNo" name="depotHeadNo" th:field="*{depotHeadNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">入库时间：</label>
                <div class="col-sm-8">
                    <input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">入库数量：</label>
                <div class="col-sm-8">
                    <input id="amount" name="amount" th:field="*{amount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">明细文件名称：</label>
                <div class="col-sm-8">
                    <input id="itemFileName" name="itemFileName" th:field="*{itemFileName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">标签类型：</label>
                <div class="col-sm-8">
                    <input id="tagType" name="tagType" th:field="*{tagType}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">起始序列号：</label>
                <div class="col-sm-8">
                    <input id="beginSerialNumber" name="beginSerialNumber" th:field="*{beginSerialNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">结束序列号：</label>
                <div class="col-sm-8">
                    <input id="endSerialNumber" name="endSerialNumber" th:field="*{endSerialNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <input id="status" name="status" th:field="*{status}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">当前序列号：</label>
                <div class="col-sm-8">
                    <input id="currentSerialNumber" name="currentSerialNumber" th:field="*{currentSerialNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">已使用数量：</label>
                <div class="col-sm-8">
                    <input id="usedAmount" name="usedAmount" th:field="*{usedAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">未使用数量：</label>
                <div class="col-sm-8">
                    <input id="unusedAmount" name="unusedAmount" th:field="*{unusedAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">更新时间：</label>
                <div class="col-sm-8">
                    <input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/depotHead"
		$("#form-depotHead-edit").validate({
			rules:{
				tagType:{
					required:true,
				},
				amount:{
					required:true,
					isDigits:true,
				},
				remark:{
					maxlength: 255
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-depotHead-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
